package com.sj.purchase.modules.cost.domain;

import com.sj.purchase.modules.purchase.domain.PurchaseId;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by Alin on 2017/10/23.
 */
@Entity
public class StockContrast{

    @ExcelEntity
    @Id
    private PurchaseId id;
    @Excel(name = "sku名称", width = 35)
    private String skuName;
    @Excel(name = "库存差异", width = 35)
    private Long num;
    @Excel(name = "期初库存", width = 35)
    private Long beginStock;
    @Excel(name = "期末库存", width = 35)
    private Long endStock;
    public Long getNum() {
        return num;
    }

    public StockContrast setNum(Long num) {
        this.num = num;
        return this;
    }

    public PurchaseId getId() {
        return id;
    }

    public StockContrast setId(PurchaseId id) {
        this.id = id;
        return this;
    }

    public String getSkuName() {
        return skuName;
    }

    public StockContrast setSkuName(String skuName) {
        this.skuName = skuName;
        return this;
    }

    public Long getBeginStock() {
        return beginStock;
    }

    public StockContrast setBeginStock(Long beginStock) {
        this.beginStock = beginStock;
        return this;
    }

    public Long getEndStock() {
        return endStock;
    }

    public StockContrast setEndStock(Long endStock) {
        this.endStock = endStock;
        return this;
    }
}
